var studentName = $.cookie("studentName")
var studenticon = $.cookie("studenticon")
$(".user-avatar").attr("src",studenticon)
$(".user-name").html(studentName)

$("body").on("click",".returnlogin",function(){
    console.log(1)
    $.removeCookie("studentName");
    $.removeCookie("studenticon");
    $.removeCookie("student");
    $.ajax({
        type:"get",
        url:"/student/logout",
        success:function(data){
            console.log(data)
        }
    })
    location.href = "StudentLogin"
})